/**
  ******************************************************************************
  * @file    String.c 
  * @author  Thongnh
  * @version V1.0
  * @date    23/10/2012
  ******************************************************************************
**/

/* Includes ------------------------------------------------------------------*/
#include "StrLib.h"


void cStrLib::Strcpy(U8* dst, const U8* src, const U16 len)
{
    U16 i;
    for (i=0; i<len; i++)
    {
        dst[i] = src[i];
    }
}

bool cStrLib::Strcmp(const U8* iData1, const U8* iData2, const U16 len)
{
    U16 i;
    for (i=0; i<len; i++)
    {
        if (iData1[i] != iData2[i])
            return (false);
    }

    return (true);
}

